package com.rong.maven01demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rong.maven01demo.dao.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    @Select("select * from t_role where user_id = #{userId}")
    List<Role> selectByUserId(String userId);
}
